import Layout from '@/layout'

const storeRouter = {
  path: '/store',
  name: 'store-group',
  component: Layout,
  meta: { title: '仓库报表', icon: 'tree', roles: ['m7200'] },
  children: [
    {
      path: 'day',
      component: (resolve) => require(['@/views/store-group/day'], resolve),
      name: 'StoreDayManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store/day/' },
      remoteUrl: '',
      meta: { title: '仓库日报', roles: ['m7210'] }
    },
    {
      path: 'month',
      component: (resolve) => require(['@/views/store-group/month'], resolve),
      name: 'StoreMonthManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store/month/' },
      remoteUrl: '',
      meta: { title: '仓库月报', roles: ['m7220'] }
    },
    {
      path: 'year',
      component: (resolve) => require(['@/views/store-group/year'], resolve),
      name: 'StoreYearManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store/year/' },
      remoteUrl: '',
      meta: { title: '仓库年报', roles: ['m7230'] }
    }
  ]
}

export default storeRouter
